package com.ssy.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssy.system.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ssy
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {


    Integer selectMaxOrderNum();

    List<Integer> queryPermissionIdsByRoleIds(@Param("roleIds") List<Integer> roleIds);

    List<Integer> queryPermissionIdsByRoleId(Integer roleId);

}
